package com.zhss.eshop.order.price.freight;


import com.zhss.eshop.order.domain.dto.OrderInfoDTO;
import com.zhss.eshop.order.domain.dto.OrderItemDTO;
import com.zhss.eshop.order.price.promotion.PromotionActivityResult;

/**
 * 运费计算组件接口
 * @author suyuan
 *
 */
public interface FreightCalculator {

	/**
	 * 计算运费
	 * @param order 订单
	 * @param orderItem 订单条目
	 * @param result 促销活动计算结果
	 * @return 运费
	 */
	Double calculate(OrderInfoDTO order, OrderItemDTO orderItem,
					 PromotionActivityResult result);

}
